# -*- coding: utf-8 -*-
"""
Created on Tue Jun  4 17:56:53 2024

@author: 29865
"""

from sklearn import svm
import pandas as pd
data = pd.read_excel('car.xlsx')
x = data.iloc[:1690, :6].to_numpy()
y = data.iloc[:1690, 6].to_numpy()
x_test = data.iloc[1691:, :6].to_numpy()
y_test = data.iloc[1691:, 6].to_numpy()
clf = svm.SVC(kernel='rbf')
clf.fit(x, y)
rv = clf.score(x, y)
R = clf.predict(x_test)
Z = R-y_test
Rs = len(Z[Z == 0])/len(Z)
